package com.ruoyi.common.domain.business;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 产品分类对象 product_category
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product_category")
@ApiModel(description = "产品分类")
public class ProductCategory extends BaseEntity implements Serializable{
private static final long serialVersionUID = 1L;

    /** 主键id */
        @TableId(value = "id" ,type = IdType.AUTO)
        @ApiModelProperty(name = "${comment}")
        private Long id;
    /** 分类名 */
            @Excel(name = "分类名")
        @ApiModelProperty(name = "分类名")
        private String name;
    /** 分类排序 */
            @Excel(name = "分类排序")
        @ApiModelProperty(name = "分类排序")
        private Long sort;
    /** 分类图片id */
            @Excel(name = "分类图片id")
        @ApiModelProperty(name = "分类图片id")
        private String image;
    /** 上级分类id */
            @Excel(name = "上级分类id")
        @ApiModelProperty(name = "上级分类id")
        private Long parentId;
    /** 逻辑删除(0表示未删除，1表示软删除) */
        @TableLogic
        @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
        private Long isDelete;
}
